const express = require('express')

const app = express()

//挂载路由
app.get('/',(req,res) =>{
    res.send('hello world.')
})


app.post('/',(req,res) =>{
    res.send('Post Request.')
})


app.listen(3000,() =>{
    console.log('http://localhost:3000')
})